import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class mainServer {
    public static void main(String[] args) throws IOException{
        ServerSocket serverSocket = new ServerSocket(80);
        while(true){
            Socket socket = serverSocket.accept();
            ObjectInputStream objectinputStream = new ObjectInputStream(socket.getInputStream());
            String content = objectinputStream.readUTF();
            System.out.println(content);
        }
    }
}
